Hi! I logged in and returned to destination page. Is there a way to get the logged in user in my javascript code and hide some buttons if user is not in role to see this buttons?
Hi, I published my project to my server, but if I try to start it, the following error occured, but I don't know a solution: The ObjectContext instance has been disposed and can no longer be used for operations that require a connection
Hi, I have little problems,changing the language at the top of my page. If I switch the language to french, the site is doing a refresh, but the language of the labels has not changed. If I hit CTRL F5, the new language of the labels appear. What I'm doing wrong?Is this a caching problem and how can I solve this?
Hi, we are using module Zero for Login. We only need the Name as required. So I overwrited the mail with: [Required(AllowEmptyStrings = true)] public override string EmailAddress { get; set; }
But now, if two people leave the mail field empty, the user is not saved to db. Is there a way to stop watching the DuplicateEmail functionality?
Hi, we are using users, roles and Groups, where one user can have multiple Groups. I don't know exactly what Multi tenancy means. Is it perhaps something similar than Groups in my Project? Is it possible, that an user have two or more tenant-ids?
Hi, I wanna add some custom properties to the database table AbpAuditLogs. I have added a class:
public class Log : AuditLog
{
public int ActionContextId { get; set; }
public UserAction UserAction { get; set; }
public ActionType ActionType { get; set; }
public Actioncontexttype Actioncontexttype { get; set; }
public string ActionContextText { get; set; }
}
I published the new fields to the database.
Now in my application library I try to save the auditInfo and the new fields, but I'm not sure how to do it.
For example, I delete a field in my application and now I wanna log this. If I use the original logging, the methodname parameters etc are saved. How can I add my properties to the save procedure?
Hi, do you have an answer, why Redirect is not working as expected:
return Json(new MvcAjaxResponse { TargetUrl = returnUrl });
in your example, everything works fine, in my own project, if I log in, the following URL is shown instead of the correct one: this is the Login URL: <a class="postlink" href="http://localhost:6234/Account/Login?ReturnUrl=%2F">http://localhost:6234/Account/Login?ReturnUrl=%2F</a> and after correct log in: <a class="postlink" href="http://localhost:6234/Account/Login?ReturnUrl=%2F">http://localhost:6234/Account/Login?ReturnUrl=%2F</a> exactly the same... if I link to Google it works...
Hi, I tried to update Abp to the newest Version, but now, in Initialize method of the webmodule following error is shown: Can't create component 'Abp.Auditing.AuditingInterceptor' as it has dependencies to be satisfied.
'Abp.Auditing.AuditingInterceptor' is waiting for the following dependencies:
Which dependency is missing?
Update: I put Configuration.Localization.Sources.Add(IocManager.Resolve<DbLocalizationSource>()); in the PostInitialize function and now following error occured in the WebViewPageBase.cs class: Can not find a source with name: "Test"
public abstract class TestWebViewPageBase : TestWebViewPageBase<dynamic>
{
}
public abstract class TestWebViewPageBase<TModel> : AbpWebViewPage<TModel>
{
protected TestWebViewPageBase()
{
LocalizationSourceName = TestConsts.LocalizationSourceName;
}
}
I use a dblocalizationsource and now, if I put the code:
Configuration.Localization.Sources.Add(
IocManager.Resolve<DbLocalizationSource>()
);
in the PreInitialize or in the Initialize function the first error occurs, if I put it in the PostInitialize function the second error is shown. I have updated abp to Version 0.5.13.0, in the other Version everything works fine Thank you
HI! Can you please tell me, which is the start element of the application. Which html is the standard? In a asp.net application there is an aspx page. Thanks in advance. Hans
Hi! Sorry for my perhaps stupid question. I'm trying to host my first boilerplate Project on a 2012 Microsoft Server. Which is the starting class of the app? If I develop a standard asp.net app, there is a aspx page which is my starting point.
It is surely a very simple question for you :-)
Thanks in advance